package com.zmn.plat.alipay;

/**
 * Alipay 相关配置
 *
 * @author duanzuocai
 * @version v1.0
 * @since 2019/6/1 10:45
 */
public class AlipayConsts {

    /** 生活号：appId */
    public static final String SERV_APP_ID = "2015062500143614";
    /** 生活号：应用私钥 */
    public static final String SERV_PRIVATE_KEY =
        "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCN3peaOnMf+jXP4cLUqadiXZ8VCdf8dRBtOPrvx0PTMjcffcezkly4qf+ft2WJu3VwSFyBWQm5qyJ015+uQGFib5zTw6gNDfgYlV7uTA2Mo+NJp/x+2E/8Qb6HdCoSGXEQ5YmPeRI+qSesIV/nhh1Te56NXlCiD936q9B9s8JLen84myX+imvJDu/qYbdTgK1kay34HP+gszeqsk9M0vm2iNTgntphOuG42coAM5kbITTD4qj7WZX5iGSP3Pj8Te/xMr5Q1uKx5OEiM73CMyiqnrSV7ygS4MGlSMZ9bxyuLYs3X14vDetKFVZcrd/IzUtRdWr3uPSMW+waFd0jN/TZAgMBAAECggEACiZ/8E/4RrRvPzVm7DJLQJV0OVwf8PcrOrVV9uvp5WV1XjJwpF93dNrs6C+F+0nHSEZVIAgP0xH0gCmhSiVfElzr+pbIIk76jj+5sBEO8x4SuAVl4ml1p5XInQZpsCvT1CKoKfS+om8V4JHuu7DzzjJNEM5LtJywBCxg2W2QHDhHKSLJ60+3xGkD5YSuYQ33vH6DO4oWzqzlJeStAQCCRM01o5+JkCFBZqoB/DoAaxDvGSh5nOtqBglmPLDZlsJ3LzJqmxq6g282ZTKGm9eqJGpPQCakTMLfotSdURgi27zCTZibKNQ7UhEmX6jV8sX6FwRhA+tjozp3JOALeG925QKBgQDK0i8A7AWgQuj45MWm/FHsujU+N4CBU+CiZiCdFNefQfaV4m9riaptNfYqTHKiWCkl1pQqNnLMAhUQ+vJd/gvwq/MZku+L2FYBaKdF7rdSwAGip1fn3zC90JVpCr+9GuunuMEkM5OVe3jbdYPJcl/jRlkXQBAFwpAVzUNHjchdqwKBgQCzETN4pzP9JQi9SPMKZ27qBfkFwG4RZOplgg2+W0cCKCphc7h1W2xWmN501OToSj0BAABvg+5Thggjzi7HyHpX1+o2NhsB/7xOlizFqOJQGP7QnDYnnJyApzVngnBDWydaVJWPIMzSRPMLia9SlAP9QRSSmHaslZjTAXhRh/RLiwKBgDbtx4cTZM6rcFb/9jusOC/JmmPYOjhMVBkHWavRGjhqb/LV2WEhboOXSqzX+W/YOoSh4YyxJFP1+GiZ3gvwoqEyoGr7rV6NX3WQN0UsSn/huk+nzJnii1vM4roJDDaV1N6enchFI6InR2sAH4nuLOPriHNQiUZWFBmjdqYpUutzAoGAG2Fk8mz2qR2RkYfnCc85CXWyVyvOaMB6itzxBwtj9zN3D4GnUeKR1Uf4s/qdqds4Kr/6URLmTUUwV3E+e/PuqSHtwS5SwOJ+w7F41Rx2xnKb+//20+XBlHZ81v/99H6qrMhEOid0yi4az8fU1Ban6YCbCbNgahFR1enioOzd8PMCgYEAt7fuwkCOpNxmujuqLqRwiHhW1oiFfPBwFC4zJqEJ2UADnM08qr5MASj6Lv3boLb/uU8ymEU7sV2c4cxbDqwZM4QG8TSUqeyGAJawUADObKRUFHAaa249dwE1oHqq1HO6J8UgFX6zSwCRuqaV57L9fyoROOINj4TFf4VPdATdZe4=";
    /** 生活号：支付宝公钥 */
    public static final String SERV_ALIPAY_PUBLIC_KEY =
        "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8Md4zNkcW3KysvFAQcnzcBlmiyVDJZOZfORkH2Rdbn4vU2Se9772/0XjwFQTQlns+vQf4CJNvhlz9jtoQ6XjT6zE0ptDQOe5w0Omr9eAp8qmYTLXZNPybs9pd5F1+emIqKsnjS+JH1nH8CAH84N+Y6DIS3QJ5KX1uavE1yN9NO4Pz+L0zpCFVqLmMZUbcbSn6zLP1hxUfRbPJqyViwprXSGZlhMzPcZnaj+oqOTBcN57tgzXCTb5sQJzu0tDKMr2GGVvrq7XVZIgzhtVHC/rxJHooq7M4o2iCrjFQsLhykQWp6ZgB57UkbOjO2n3AEy43iQ+0EctComfR0813MX60wIDAQAB";

    /** 小程序 */
    public static String APPID = "2019060465478316";
    public static String SERVER_URL = "https://openapi.alipay.com/gateway.do";
    /** 生活号：支付宝公钥 */
    public static String ALIPAY_PUBLIC_KEY =
        "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8Md4zNkcW3KysvFAQcnzcBlmiyVDJZOZfORkH2Rdbn4vU2Se9772/0XjwFQTQlns+vQf4CJNvhlz9jtoQ6XjT6zE0ptDQOe5w0Omr9eAp8qmYTLXZNPybs9pd5F1+emIqKsnjS+JH1nH8CAH84N+Y6DIS3QJ5KX1uavE1yN9NO4Pz+L0zpCFVqLmMZUbcbSn6zLP1hxUfRbPJqyViwprXSGZlhMzPcZnaj+oqOTBcN57tgzXCTb5sQJzu0tDKMr2GGVvrq7XVZIgzhtVHC/rxJHooq7M4o2iCrjFQsLhykQWp6ZgB57UkbOjO2n3AEy43iQ+0EctComfR0813MX60wIDAQAB";
    /** 生活号：应用私钥 */
    public static String PRIVATE_KEY =
        "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCiTAvg/CMHlApL8iVR8u/jpXUluq1Wec/difny/pASACrQTQsdqBLlRE+Maa/HiZpgZ5W5ldf/O1tdwth1hs9tYsm4OaciwXcMHFoeQOwpqGwYTAxXpdalxec44nMOVvN3ZoS4FXnuV4Dv7Im310rFqhPdZxjOKjwZIOwD8i6FMqCvRwkUof2CHqraTEwnHdXJV7FFz+kQEp51jQ6kHQoyG5XP2QTnA+VMWqKbYfOR0Psvi3Sg3/JZp4DdR9JUihHRbHPNRHhJDpGxZ+pfhK3W/auaKDBOhkagOKra0AFper1f/E/Tl4YFOjLgpdcpEyM8vzK8z5ks12Irll9LrRhxAgMBAAECggEAdSJ1oFfZ4GpUVCPcE51GzgJo3mYxHKyl/brLjzlzOcqtG9G/KBRaLuZyk2Dj4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FumKfA6J3qpyCWwwwBzEUS7A7O/oiE2d+25ebM8rvzWnYYkS2OCnToIZJhglXntUs5yC4UusJnB6J4dbHL06sFlcSCw7y6g=";
    public static String SIGN_TYPE = "RSA2";
    public static String CHARSET = "GBK";
    public static String FORMAT = "json";

    /**
     * 授权访问令牌的授权类型 aop.invalid-auth-token 无效的访问令牌 请刷新授权令牌或重新授权获取新的令牌 aop.auth-token-time-out 访问令牌已过期 请刷新授权令牌或重新授权获取新的令牌
     * aop.invalid-app-auth-token 无效的应用授权令牌 请刷新应用授权令牌或重新授权获取新的令牌 aop.invalid-app-auth-token-no-api 商户未授权当前接口 请重新授权获取新的应用授权令牌
     * aop.app-auth-token-time-out 应用授权令牌已过期 请刷新应用授权令牌或重新授权获取新的令牌 aop.no-product-reg-by-partner 商户未签约任何产品 ISV代理调用的场景，请上线商户的服务窗
     **/
    public static String GRANT_TYPE = "authorization_code";
    public static final String GRANT_TYPE_REFRESH_TOKEN = "refresh_token";
    /** 授权失败 */
    public static Integer ALIPAY_AUTH_ERROR = 10001;

    /**
     * 服务号-页面授权地扯：
     * https://openauth.alipay.com/oauth2/appToAppAuth.htm?app_id=2015062500143614&scope=auth_user,auth_base&redirect_uri=https%3a%2f%2ftest-api-crm.xiujiadian.com%2fuser%2falipay%2fservCallback
     * https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2015062500143614&scope=auth_user,auth_base&redirect_uri=https%3a%2f%2ftest-api-crm.xiujiadian.com%2fuser%2falipay%2fservCallback&stat&state=https://test-h5.xiujiadian.com/wxuser/index.html
     */

    // 支付宝公众号创建二维码地址
    public static String ALIPAY_QRCODE_URL = "https://openapi.alipay.com/gateway.do";
    // 公众号关注后跳转地址
    public static String ALIPAY_GOTO_URL = "https://alipays://platformapi/startapp?appId=2019060465478316&page=%2fpages%2fvip%2fdetail";

}
